//
//  TextViewController.m
//  产业头条
//
//  Created by ZJ on 16/12/15.
//  Copyright © 2016年 ZJ. All rights reserved.
//

#import "TextViewController.h"
#import "ZJAdditions.h"
@interface TextViewController ()
/** textView */
@property (nonatomic, strong) UITextView *textView;
@end

@implementation TextViewController

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.tabBarController.tabBar.hidden = YES;
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;
    
}
- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    self.tabBarController.tabBar.hidden = NO;
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.titlelabel.text = @"二维码扫描结果";
    
    
}


- (void)setText:(NSString *)text{
    _text = text;
    [self.view addSubview:self.textView];
    self.textView.text = text;
    
}

- (UITextView *)textView{
    if (_textView == nil){
        _textView = [[UITextView alloc]initWithFrame:CGRectMake(10 * [UIScreen zj_textFontScale], 64 + 20 * [UIScreen zj_textFontScale], self.view.width - 10 * [UIScreen zj_textFontScale], [UIScreen zj_screenHeight] - 64 - 20 * [UIScreen zj_textFontScale])];
        _textView.font = [UIFont systemFontOfSize:16 * [UIScreen zj_textFontScale]];
        _textView.editable = NO;
        _textView.textColor = [UIColor blackColor];
    }
    return _textView;
}

@end
